﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UReturnVisitList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.UserModel.UReturnVisitList" %>
<form id="pagerForm" method="post" action="UserModel/UReturnVisitList.aspx">
<input type="hidden" name="CustomerName" value="<%=CustomerName %>" />
<input type="hidden" name="SerialNumber" value="<%=SerialNumber %>" />
<input type="hidden" name="AgentName" value="<%=AgentName %>" />
<input type="hidden" name="AgentAddress" value="<%=AgentAddress %>" />
<input type="hidden" name="CreateDateFrom" value="<%=CreateDateFrom %>" />
<input type="hidden" name="CreateDateTo" value="<%=CreateDateTo %>" />
<input type="hidden" name="ShowTimeInput" value="<%=ShowTimeInput?false:ShowTimeInput %>" />

<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
</form>
<form id="form1" runat="server" method="post" action="UserModel/UReturnVisitList.aspx" onsubmit="return navTabSearch(this);">
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent">
            <tr> 
                <td>
                    机号:
                    <input name="SerialNumber" type="text"  value="<%=SerialNumber %>" style="width:100px"/>
                </td>
                <td >
                    <input type="hidden" name="ShowTimeInput" value="<%=ShowTimeInput?false:ShowTimeInput %>" />
                    客户姓名：
                   <input name="CustomerName" type="text"  value="<%=CustomerName %>" style="width:100px"/>
                </td>               
                <td>
                   经销商名称：
                   <input name="AgentName" type="text" value="<%=AgentName %>" class="autocomplete"  style="width:100px" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getagentlist&showtype=CardCode" swidth="300" showinputid=""/>
                </td>               
            </tr>  
            <tr>
                <td>
                   回访日期：
                   从
                    <input name="CreateDateFrom" type="text" class="date" value="<%=CreateDateFrom %>" style="width:100px" />
                </td>
                <td>
                   到               
                    <input name="CreateDateTo" type="text" class="date" value="<%=CreateDateTo %>"  style="width:100px"/>
                </td>
                <td >
                    <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>          
        </table>
        
    </div>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
             <% if (HasPower(IHISCETeim.Web.Permission.查看))
             {%>
            <li><a class="add" href="UserModel/UReturnVisitView.aspx?ID={sid_user}" target="navTab" title="查看回访记录" rel="UReturnVisitView"><span>查看</span></a></li>
           <%} %>
         <%-- <% if (HasPower(IHISCETeim.Web.Permission.修改))
             {%>
            <li><a class="edit" href="UserModel/UReturnVisitEdit.aspx?UWCID={sid_user}" target="navTab" title="修改回访记录" rel="UReturnVisitEdit"><span>修改</span></a></li>
           <%} %>--%>
           <% if (HasPower(IHISCETeim.Web.Permission.删除))
               {%>
            <li><a class="delete" href="sysAjaxDone.ashx?ajaxmethod=DeleteUReturnVisit&UWCID={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
           <%} %>
        </ul>
    </div>
    <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table class="table" width="100%" layouth="140">
        <thead>
            <tr>
                <th>回访节点</th>
                <th  orderField="SerialNumber" class="asc">
                    机号
                </th>
                <th orderField="IntoDate" class="asc">
                    交机日期
                </th>
                <th orderField="CreateDate" class="asc">
                    回访日期
                </th>
                <th width="100px" >
                    客户姓名
                </th>
                <th  align="center">
                    客户手机
                </th>                
                <th >
                    经销商
                </th>               
          
                <th>工作小时</th>
            
                <th >
                    转技师
                </th>
           <%--      <th >
                    答复时间
                </th>  
                <th >
                    是否完成
                </th> --%>

                <th >
                    现场交机
                </th>
                <th >
                    讲解满意
                </th>
                <th >
                    工作态度
                </th>
                <th >
                    主动联系
                </th>
                <th >
                    及时保养
                </th>
                <th >
                    穿工作服
                </th>
                <th >
                    配件价格
                </th>

                <%--<th>
                    备注说明
                </th>   --%>                
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr target="sid_user" rel="<%# Eval("ID") %>">
                <td><%# Eval("VisitType")%>天</td>
                <td> <%# Eval("SerialNumber")%></td>
                <td><%# Convert.ToDateTime(Eval("IntoDate")).ToString("yyyy-MM-dd")%></td>
				<td><%# Convert.ToDateTime(Eval("CreateDate")).ToString("yyyy-MM-dd")%></td>
				<td><%# Eval("CustomerName")%></td>
				<td><%# Eval("CustomerMobile")%></td>
				<td><%# Eval("AgentName")%></td>
              
                   <td><%# Eval("WorkTime")%></td>
             
                <td><%# Eval("RealName")%></td>
              <%-- <td>
                    <a href="UserModel/U4008RecordReplayEdit.aspx?U4RID=<%# Eval("U4RID") %>" target="navTab" title="查看回复记录" rel="U4008RecordEdit">
                        <%# Eval("ReplayDate") is DBNull?"": Convert.ToDateTime(Eval("ReplayDate")).ToString("yyyy-MM-dd")%>  
                    </a>             
               </td>
                <td><%# Eval("IsComplete") is DBNull? "": Convert.ToBoolean(Eval("IsComplete")) ? "完成" : "<b style='color:red'>未完成</b>"%></td>--%>
                
                 <td><%# Eval("VisitType").ToString() == "8" ? Get有OR没有(Eval("XCJJ")):""%></td>
                 <td><%# Eval("VisitType").ToString() == "8" ?Get满意(Eval("JJMY")):""%></td>
                 <td><%# Get工作态度(Eval("GZTD"))%></td>
                 <td><%# (Eval("VisitType").ToString() != "8")?Get主动联系(Eval("ZDLX")):""%></td>
                 <td><%# (Eval("VisitType").ToString() != "8")?Get有OR没有(Eval("JSBY")):""%></td>
                 <td><%#  Eval("VisitType").ToString() == "70" ? Get有OR没有(Eval("CGZF")):""%></td>
                 <td><%#  Eval("VisitType").ToString() == "130" ? Get配件价格合理(Eval("PJJG")):""%></td>
                
               <%-- <td><%# Eval("otherRemark")%></td>--%>
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
         </table>
        </FooterTemplate>
    </asp:repeater>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
               <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
            pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div>
</div>
</form>
